﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- saved from url=(0014)about:internet -->
<head>
  <title>userData Test</title>
  <style type="text/css">
    .userData
    {
      behavior: url(#default#userdata);
    }
  </style>
</head>
<body>
<span class="userData" id="ss1"></span>
<span class="userData" id="ss2"></span>
<script type="text/ecmascript">
  ss1.expires = new Date(new Date().valueOf() + 3600000).toUTCString();
  ss1.setAttribute("wtf", 1);
  ss1.save("../ss1");

  ss2.expires = new Date(new Date().valueOf() + 3600000).toUTCString();
  ss2.setAttribute("omg", 2);
  ss2.save("ss2");

/*
  ss2.expires = new Date(new Date().valueOf() + 4000000).toUTCString();
  ss2.setAttribute("omg.", 2.1);
  ss2.save("ss2+");
  */
  var ss3 = document.createElement("div");
  ss3.style.cssText = "display: none; behavior: url(#default#userdata);";
  var body = document.body;
  body.insertBefore(ss3, body.firstChild);
  alert([ss3.load("ss2"), ss3]);

  //ss3.load("ss2+");
  document.write(ss3.expires);
  //ss3.setAttribute("huh", void (0));
  //ss3.expires = new Date().toUTCString();
  //ss3.save("ss2+");
</script>
</body>
</html>
